/**
 * Created by Administrator on 2016/9/10.
 */
define(['jquery'],function(){
    $(document).scroll(function(){
        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        //scrollTop就是触发滚轮事件时滚轮的高度
        if (scrollTop>=220) {
            $("#tm-market-nav").addClass("tm-market-nav-change");
        }else{
            $("#tm-market-nav").removeClass("tm-market-nav-change");
            $("#tm-market-nav").addClass("tm-market-nav");
        }
        if (scrollTop==0) {
            $("#mui-mbar-bot").css({"display":"none"});
        }else{
            $("#mui-mbar-bot").css({"display":"block"});
        }
        //scrollTop就是触发滚轮事件时滚轮的高度
        if (scrollTop>=770) {
            $("#lift").addClass("lift-change");
        }else{
            $("#lift").removeClass("lift-change");
            $("#lift").addClass("lift");
        }
    });
});
